﻿<%@ Control Language="C#" %>
<%@ Import Namespace="Hidistro.Core" %>
<%@ Import Namespace="Hidistro.UI.SaleSystem.Tags" %>
<%@ Register TagPrefix="wnxd" Assembly="wnxd.Web" Namespace="wnxd.Web" %>
<asp:Repeater ID="PList" runat="server">
    <ItemTemplate>
        <div class="shoudong clearfix" id="fenleiid<%# Eval("CategoryId") %>">

            <div class="shoudong-zuo clearfix">
                <div class="locen">
                    <em><%#(int)Eval("louc")+1 %>F</em>
                    <h3><%#Eval("Name")%></h3>
                    <a target="_blank" href="<%#Globals.GetSiteUrls().StaticizeSubCategory(Convert.ToInt32(Eval("CategoryId")), Eval("RewriteName").ToString(), (int)Eval("ParentCategoryId"),Eval("ParentRewriteName").ToString(),0,0,0,0,0)%>">查看更多&gt;&gt;</a>
                </div>
                <div class="locen1">
                    <%#((wnxd_SortList)this.Parent).GetSortImg(Eval("CategoryId").ToString(),0)%>
                </div>
            </div>

            <div class="shoudong-zhong">
                <ul>
                    <%#((wnxd_SortList)this.Parent).GetSortbitImg(Eval("CategoryId").ToString(),1)%>
                </ul>
            </div>
            <div class="shoudong-you">
                <ul>
                    <asp:Repeater ID="GList" runat="server">
                        <ItemTemplate>
                            <li>
                                <input type="hidden" name="hidProduct" value="<%#Eval("ProductId") %>" />
                                <a target="_blank" title="<%#Eval("ProductName")%>" href="<%#Globals.GetSiteUrls().UrlData.FormatUrl("productDetails", new object[] { Eval("ProductId"), Eval("CategoryUrl") })%>">
                                    <img title="<%#Eval("ProductName")%>" alt="<%#Eval("ProductName")%>" src="<%#Globals.GetImgUrl(Eval("ThumbnailUrl220").ToString())%>">
                                    <div style="display: none;" id="divProduct<%#Eval("ProductId") %>">
                                        <div class="xianshiq"></div>
                                        <div class="xianshiq1">
                                            <p>
                                                <img src="http://image.juseshop.com/shopsanqi/stime.png">
                                                <span class="djs" time="" id="djs<%#Eval("ProductId") %>">剩余3天05小时00分05秒</span>
                                            </p>
                                        </div>
                                    </div>
                                    <p><%#Eval("ProductName")%> <em><%#Eval("ProductText")%></em></p>
                                    <span><b id="Price<%#Eval("ProductId") %>">¥<%#((decimal)Eval("SalePrice")).ToString("F0")%></b>
                                        <div class="cu">
                                            <img src="http://image.juseshop.com/shopsanqi/cu.png">
                                        </div>
                                        <%#((bool)Eval("IsFreight") ||(bool)Eval("IsfreeShipping")) ?"<div class=\"baoyou\">包邮</div>":""%>
                                        <em>已售<i id="saleCount<%#Eval("ProductId") %>"><%#Eval("ShowSaleCounts")%></i>件</em></span>
                                </a>
                            </li>
                        </ItemTemplate>
                    </asp:Repeater>
                </ul>
            </div>
            <script type="text/javascript">
                (function () {
                    var flClass = {
                        "5": "nvxi",
                        "9": "qinqufs",
                        "20": "qinqutd",
                        "13": "zhuqinys",
                        "30": "taotaosj",
                        "17": "runhuabj"
                    }, cid = $("#SubPage_hide_cid").val();
                    if (flClass[cid]) {
                        var cn = flClass[cid];
                        $(".locen:not(." + cn + ")").each(function () {
                            $(this).addClass(cn);
                        });
                    }
                })();
                </script>

        </div>
    </ItemTemplate>
</asp:Repeater>
<script type="text/javascript" src="http://res.juseshop.com/js/shopsanqi/playtime.js"></script>


